www.gusucode.com > 基于VBLAST-OFDM的MATLAB SIMULATION,图形化界面,并且给出了各仿真图 > 基于VBLAST-OFDM的MATLAB SIMULATION,图形化界面,并且给出了各仿真图/vblast-ofdm simulation/rx_gen_deintlvr_patt.m
function idx = rx_gen_deintlvr_patt(interleaver_depth,SimulationParameters) global SimulationConstants; idx = zeros(1, interleaver_depth); s = max([interleaver_depth/SimulationParameters.FFTPoints/2 1]); perm_patt = s*floor((0:interleaver_depth-1)/s)+ ... mod((0:interleaver_depth-1)+floor(16*(0:interleaver_depth-1)/interleaver_depth),s); deintlvr_patt = 16*perm_patt - (interleaver_depth-1)*floor(16*perm_patt/interleaver_depth); idx = deintlvr_patt + 1;